<?php

$this->pageTitle=Yii::app()->name . ' - Cập nhật thông tin';
$this->breadcrumbs=array(
	'Cập nhật thông tin',
);
?>


<div >
<h1>Cập nhật thông tin cá nhân</h1>
<?php if(Yii::app()->user->hasFlash('contact')): ?>

<div class="flash-success">
	<?php echo Yii::app()->user->getFlash('contact'); ?>
</div>

<?php else: ?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
	),
	'htmlOptions' => array('enctype' => 'multipart/form-data'),
)); ?>



	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'hoten'); ?>
		<?php echo $form->textField($model,'hoten'); ?>
		<?php echo $form->error($model,'hoten'); ?>
	</div>

		<div class="row">
		<?php echo $form->labelEx($model,'ngaysinh'); ?>		
		<?php Yii::import('application.extensions.CJuiDateTimePicker.CJuiDateTimePicker');
		   	 $this->widget('CJuiDateTimePicker',array(
		        'model'=>$model, //Model object
		        'attribute'=>'ngaysinh', //attribute name
		                'mode'=>'date',//use "time","date" or "datetime" (default)
		        'options'=>array(), // jquery plugin options
		    	 'language' => ''
		    ));
		?>
	<?php echo $form->error($model,'ngaysinh'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'diachi'); ?>
		<?php echo $form->textArea($model,'diachi',array('size'=>60,'maxlength'=>128)); ?>
		<?php echo $form->error($model,'diachi'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dienthoai'); ?>
		<?php echo $form->textField($model,'dienthoai',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'dienthoai'); ?>
	</div>

	<?php if(CCaptcha::checkRequirements()): ?>
	<div class="row">
		<?php echo $form->labelEx($model,'verifyCode'); ?>
		<div>
		<?php $this->widget('MyCaptcha'); ?>
		<?php echo $form->textField($model,'verifyCode'); ?>
		</div>
		<?php echo $form->error($model,'verifyCode'); ?>
	</div>
	<?php endif; ?>

	<p class="note">Thông tin bắc buộc <span class="required">*</span> </p>
	
	<div class="row buttons">
		<?php echo CHtml::submitButton('Cập nhật'); ?>
	</div>

<?php $this->endWidget(); ?>
</div></div>

<?php endif; ?>